import $http from '@/http/http'

const baseURL = '/user'

export const register = data => {
    return $http.post(baseURL + '/register', data)
}

export const login = data => {
    return $http.post(baseURL + '/login', data)
}

export const getTx = data => {
    return $http.post(baseURL + '/getTransaction', data)
}

export const test = () => {
    return $http.get(baseURL + '/test')
}

export const getInfo = data => {
    return $http.post(baseURL + '/getInfo', data)
}

export const setInfo = data => {
    return $http.post(baseURL + '/setInfo', data)
}